
<!DOCTYPE html>
<html lang='zh-cn'>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <title>文档-文档主页 - 禅道</title>
    <script>window.config={"webRoot":"\/zentao\/","debug":false,"appName":"","cookieLife":30,"requestType":"PATH_INFO","requestFix":"-","moduleVar":"m","methodVar":"f","viewVar":"t","defaultView":"html","themeRoot":"\/zentao\/theme\/","currentModule":"doc","currentMethod":"templates.index","clientLang":"zh-cn","requiredFields":"","router":"\/zentao\/index.php","save":"\u4fdd\u5b58","runMode":"","timeout":30000,"pingInterval":""};
    window.lang={"submitting":"\u7a0d\u5019...","save":"\u4fdd\u5b58","expand":"\u5c55\u5f00\u5168\u90e8","timeout":"\u8fde\u63a5\u8d85\u65f6\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u73af\u5883\uff0c\u6216\u91cd\u8bd5\uff01"};

    </script>
    <script>config.onlybody = "no";</script><link rel='stylesheet' href='/zentao/theme/default/zh-cn.default.css?v=12.5.3' type='text/css' media='screen' />
    <script src='/zentao/js/all.js?v=12.5.3'></script>
    <style>.split-row > .side-col,
    .split-row > .main-col {padding: 0;}
    .col-spliter {width: 20px; position: relative; z-index: 10; cursor: ew-resize;}
    .col-spliter:before,
    .col-spliter:after {content: ''; display: block; position: absolute; left: 50%; width: 10px; margin-left: -5px; top: 0; bottom: 0; background: rgba(0,0,0,.075); opacity: 0; transition: opacity .2s;}
    .col-spliter:before {border-radius: 5px;}
    .col-spliter:after {background: transparent; top: 50%; bottom: auto; height: 20px; opacity: 1; width: 4px; border-left: 1px solid rgba(0,0,0,.2); border-right: rgba(0,0,0,.2) 1px solid; margin-left: -2px; margin-top: -10px; }
    /* .col-spliter:hover:after {width: 2px; background: rgba(0,0,0,.15); margin-left: -1px; top: 0; bottom: 20px; height: auto; margin-top: auto; border: none;} */
    .row-spliting .col-spliter:after,
    .col-spliter:hover:after {border-color: rgba(0,0,0,.3);}
    .col-spliter:hover:before,
    .col-spliter:hover:after,
    .row-spliting .col-spliter:before,
    .row-spliting .col-spliter:after {opacity: 1;}

    @media (max-width: 720px)
    {
        .split-row > .side-col,
        .split-row > .main-col {width: 100%!important;}
    }

    .side-col .tab-content {margin-right: -5px}
    .side-col .cell .nav a.setting {padding:8px;}
    .side-footer {padding:8px; margin: 0 5px; border-top: 1px solid #ddd;}
    .col-sm-size .col-sm-5,
    .col-sm-size .col-sm-7 {width: 100%;}
    .col-sm-size .table .c-user,
    .col-sm-size .table .c-num,
    .col-md-size .table .c-datetime {display: none;}

    .table-files .btn {padding:0 6px;}

    #docsTree li > a > .icon {opacity: .65;}

    .files-grid {padding: 0 10px;}
    .files-grid .col {width: 20%; text-align: center; padding: 0; margin-bottom: 10px;}
    .files-grid .actions {background: #E9F2FB; z-index: 10; opacity: 0; transition: opacity .2s; padding-bottom: 8px; border-radius: 0 0 3px 3px; padding-top: 8px;}
    .files-grid .col:hover .actions {opacity: 1;}
    .files-grid .file {padding: 10px; cursor: pointer; display: block; border-radius: 2px; transition: background-color .2s; border-radius: 3px 3px 0 0}
    .files-grid .col:hover .file {background-color: #E9F2FB;}
    .files-grid .file-icon {font-size: 54px; width: 64px; height: 64px; display: block; margin: 0 auto 8px; line-height: 64px; color: #8E939A}
    .files-grid .file-name,
    .files-grid .file-info {text-overflow: ellipsis; white-space: nowrap; overflow: hidden; line-height: 20px;}
    .files-grid .file-info {font-size: 12px; margin-top: 3px;}
    .files-grid .icon-folder {background: url() no-repeat center;}
    .files-grid .icon-paper-clip {background:url('') no-repeat center;}
    .files-grid .icon-product {background: url() no-repeat center;}
    .files-grid .icon-project {background: url() no-repeat center;}
    .files-grid .icon-product:before,
    .files-grid .icon-project:before,
    .files-grid .icon-paper-clip:before,
    .files-grid .icon-folder:before {display: none;}
    .files-grid .img-holder {height: 64px; line-height: 64px; margin: 0 auto 8px; width: 100%; background-size: contain; background-repeat: no-repeat; background-position: center;}
    .files-grid .img-holder > img {max-height: 64px; opacity: 0; width: 100%;}
    .files-grid + .table-footer {margin-top: 20px;}

    @keyframes flash-icon
    {
        0% {color: #666;}
        100% {color: #fff;}
    }

    .main-col > .panel > .panel-body {padding: 5px 10px;}
    .main-col .panel-title a.active {color: #0c64eb}

    .side-col > .cell {overflow: hidden auto; padding: 0; position: relative;}
    .side-col > .cell > header {position: absolute; top: 10px; right: 10px; left: 10px;}
    .side-col > .cell > header > .c-sm {padding-right: 20px; width: 60px;;}
    .side-col .docsTree {position: absolute; top: 53px; left: 0; right: 0; bottom: 0; overflow: auto; padding: 0 10px 10px;}
    .main-col .block-files > .panel-body {top: 45px; left: 0; right: 0; bottom: 0; overflow: auto;}

    td.c-name a{color: #0c60e1}
    td.c-name a:visited{color: #082999}

    .panel-title.font-normal .btn-group{margin-left: 20px;}

    .querybox-opened{color: #0c64eb; background: rgba(0,0,0,.075);}

    #queryBox #groupAndOr {min-width: 65px;}
    #noticeAcl{margin-left:10px;}

    #pageNav .dropdown-menu{max-height:350px; overflow-y:auto;}

    #createDropdown ul.dropdown-menu{width:100%;}
    #pageActions ul.dropdown-menu{left: 67px}
    #mainRow .main-col .row .col-sm-7{width:55% !important;}
    #mainRow .main-col .row .col-sm-5{width:45% !important;}
    </style><link rel='icon' href='/zentao/favicon.ico' type='image/x-icon' />
    <link rel='shortcut icon' href='/zentao/favicon.ico' type='image/x-icon' />
    <!--[if lt IE 10]>
    <script src='/zentao/js/jquery/placeholder/min.js?v=12.5.3'></script>
    <![endif]-->
</head>
<body>
<style>
    .picker-single .picker-selection-remove{z-index: 1000;}
    .picker-selection-single:after, .picker-multi.picker-focus .picker-selections:before{font-family: ZentaoIcon !important; content: '\f0d7' !important;}
</style>
<script>
    var chooseUsersToMail = '选择要发信通知的用户...';
    if($.fn.picker)
    {
        $(document).ready(function()
        {
            $(".picker-select[data-pickertype!='remote']").picker({chosenMode: true});
            $("[data-pickertype='remote']").each(function()
            {
                var pickerremote = $(this).attr('data-pickerremote');
                $(this).picker({chosenMode: true, remote: pickerremote});
            })
        });
    }
</script>
<header id='header'>
    <div id='mainHeader'>
        <div class='container'>
            <hgroup id='heading'>
                <h1 id='companyname' title='易软天创'><a href='/temp/index' >易软天创</a>
                </h1>
            </hgroup>
            <nav id='navbar'><ul class='nav nav-default'>
                <li  data-id='my'><a href="/index/ind2" ><span> 我的地盘</span></a></li>
                <li  data-id='product'><a href='/temp/product-index-no' >产品</a></li>
                <li class='active' data-id='project'><a href='/temp/project-index-no' class='active'>项目</a></li>
                <li  data-id='qa'><a href='/temp/product-showErrorNone-qa' >测试</a></li>
                <li class='divider'></li><li  data-id='ci'><a href='/temp/repo-browse' >集成</a></li>
                <li  data-id='doc'><a href='/temp/doc' >文档</a></li>
                <li  data-id='report'><a href='/temp/report-productSummary' >统计</a></li>
                <li class='divider'></li><li  data-id='company'><a href='/temp/company-browse' >组织</a></li>
                <li  data-id='admin'><a href='/temp/admin' >后台</a></li>
            </ul>
            </nav>
            <div id='toolbar'>
                <div id="userMenu">
                    <div id='searchbox'><div class='input-group'><div class='input-group-btn'><a data-toggle='dropdown' class='btn btn-link'><span id='searchTypeName'>项目</span> <span class='caret'></span></a><input type='hidden' name='searchType' id='searchType' value='project'  />
                        <ul id='searchTypeMenu' class='dropdown-menu'><li ><a href='javascript:$.setSearchType("bug");' data-value='bug'>Bug</a></li><li ><a href='javascript:$.setSearchType("story");' data-value='story'>需求</a></li><li ><a href='javascript:$.setSearchType("task");' data-value='task'>任务</a></li><li ><a href='javascript:$.setSearchType("testcase");' data-value='testcase'>用例</a></li><li class='selected'><a href='javascript:$.setSearchType("project");' data-value='project'>项目</a></li><li ><a href='javascript:$.setSearchType("product");' data-value='product'>产品</a></li><li ><a href='javascript:$.setSearchType("user");' data-value='user'>用户</a></li><li ><a href='javascript:$.setSearchType("build");' data-value='build'>版本</a></li><li ><a href='javascript:$.setSearchType("release");' data-value='release'>发布</a></li><li ><a href='javascript:$.setSearchType("productplan");' data-value='productplan'>产品计划</a></li><li ><a href='javascript:$.setSearchType("testtask");' data-value='testtask'>测试单</a></li><li ><a href='javascript:$.setSearchType("doc");' data-value='doc'>文档</a></li><li ><a href='javascript:$.setSearchType("caselib");' data-value='caselib'>用例库</a></li><li ><a href='javascript:$.setSearchType("testreport");' data-value='testreport'>测试报告</a></li></ul></div><input id='searchInput' class='form-control search-input' type='search' onclick='this.value=""' onkeydown='if(event.keyCode==13) $.gotoObject();' placeholder='编号(ctrl+g)'/></div><a href='javascript:$.gotoObject();' class='btn btn-link' id='searchGo'>GO!</a></div>
                    <ul id="userNav" class="nav nav-default">
                        <li><a class='dropdown-toggle' data-toggle='dropdown'><span class='user-name'>admin</span><span class='caret'></span></a><ul class='dropdown-menu pull-right'><li class="user-profile-item"><a href='/temp/my-profile' class=' no-role'><div class='avatar avatar bg-secondary avatar-circle'>A</div>
                            <div class="user-profile-name">admin</div><div class="user-profile-role"></div></a></li><li class="divider"></li><li><a href='/temp/my-profile' >个人档案</a>
                        </li><li><a href='/temp/my-changepassword' class='iframe' data-width='500'>更改密码</a>
                        </li><li class='divider'></li><li class='dropdown-submenu'><a href='javascript:;'>主题</a><ul class='dropdown-menu pull-left'><li class='selected'><a href='javascript:selectTheme("default");' data-value='default'>禅道蓝（默认）</a></li><li ><a href='javascript:selectTheme("green");' data-value='green'>叶兰绿</a></li><li ><a href='javascript:selectTheme("red");' data-value='red'>赤诚红</a></li><li ><a href='javascript:selectTheme("purple");' data-value='purple'>玉烟紫</a></li><li ><a href='javascript:selectTheme("pink");' data-value='pink'>芙蕖粉</a></li><li ><a href='javascript:selectTheme("blackberry");' data-value='blackberry'>露莓黑</a></li><li ><a href='javascript:selectTheme("classic");' data-value='classic'>经典蓝</a></li></ul></li><li class='dropdown-submenu'><a href='javascript:;'>Language</a><ul class='dropdown-menu pull-left'><li class='selected'><a href='javascript:selectLang("zh-cn");'>简体</a></li><li ><a href='javascript:selectLang("zh-tw");'>繁體</a></li><li ><a href='javascript:selectLang("en");'>English</a></li><li ><a href='javascript:selectLang("de");'>Deutsch</a></li><li ><a href='javascript:selectLang("fr");'>Français</a></li><li ><a href='javascript:selectLang("vi");'>Tiếng Việt</a></li><li ><a href='javascript:selectLang("ja");'>日本語</a></li></ul></li><li class='custom-item'><a href='custom-ajaxMenu-project-index.html?onlybody=yes' data-toggle='modal' data-type='iframe' data-icon='cog' data-width='80%'>自定义导航</a></li><li class="divider"></li><li class='dropdown-submenu'><a data-toggle='dropdown'>帮助</a><ul class='dropdown-menu pull-left'><li><a href='tutorial-start.html' class='iframe' data-class-name='modal-inverse' data-width='800' data-headerless='true' data-backdrop='true' data-keyboard='true'>新手教程</a>
                        </li><li><a href='https://www.zentao.net/book/zentaopmshelp.html?fullScreen=zentao' class='open-help-tab' target='_blank' rel='noopener noreferrer'>手册</a>
                        </li><li><a href='/temp/misc-changeLog' class='iframe' data-width='800' data-headerless='true' data-backdrop='true' data-keyboard='true'>修改日志</a>
                        </li></ul></li>
                            <li><a href='/temp/misc-about' class='about iframe' data-width='1050' data-headerless='true' data-backdrop='true' data-keyboard='true' data-class='modal-about'>关于禅道</a>
                            </li><li class="divider"></li><li><a href='/temp/user-logout' >退出</a>
                            </li></ul></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div id='subHeader'>
        <div class='container'>
            <div id="pageNav" class='btn-toolbar'><div class='btn-group angle-btn'><a href='/zentao/doc/' class='btn'>文档主页</a>
            </div></div>
            <nav id='subNavbar'><ul class='nav nav-default'>
            </ul>
            </nav>
            <div id="pageActions"><div class='btn-toolbar'><a class="btn btn-link querybox-toggle" id="bysearchTab"><i class="icon icon-search muted"></i>搜索</a><a data-toggle='dropdown' class='btn btn-link' title=快速访问>快速访问 <span class='caret'></span></a><ul class='dropdown-menu'><li><a href='/zentao/doc-browse-0-byediteddate.html' ><i class='icon icon-folder-upload'></i> 最近更新</a>
            </li><li><a href='/zentao/doc-browse-0-openedbyme.html' ><i class='icon icon-folder-account'></i> 我的文档</a>
            </li><li><a href='/zentao/doc-browse-0-collectedbyme.html' ><i class='icon icon-folder-star'></i> 我的收藏</a>
            </li></ul><a href='/zentao/doc-createLib.html' class='btn btn-secondary iframe' data-width='70%'><i class='icon icon-plus'></i> 创建文档库</a>
            </div></div>
        </div>
    </div>
</header>

<main id='main'  >
    <div class='container'>
        <div class='main-row split-row fade' id='mainRow'>
            <div class="side-col" style="width:238px" data-min-width="238">
                <div class="cell">
                    <div class="tabs">
                        <ul class='nav nav-tabs'>
                            <li class='active'><a href='#product' data-tab>产品</a>
                            </li>
                            <li class=''><a href='#project' data-tab>项目</a>
                            </li>
                            <li class=''><a href='#custom' data-tab>自定义</a>
                            </li>
                        </ul>
                        <div class="tab-content">
                            <div class="tab-pane active" id="product">
                                <ul data-name="docsTree" data-ride="tree" data-initial-state="preserve" class="tree no-margin">
                                    <li>
                                        <a href='/zentao/product-create.html' class='text-ellipsis'>创建产品文档库</a>
                                    </li>
                                </ul>
                            </div>
                            <div class="tab-pane " id="project">
                                <ul data-name="docsTree" data-ride="tree" data-initial-state="preserve" class="tree no-margin">
                                    <li>
                                        <a href='/zentao/project-create.html' class='text-ellipsis'>创建项目文档库</a>
                                    </li>
                                </ul>
                            </div>
                            <div class="tab-pane " id="custom">
                                <ul data-name="docsTree" data-ride="tree" data-initial-state="preserve" class="tree no-margin">

                                    <li>
                                        <a href='/zentao/doc-createLib-custom.html' class='iframe' data-width='70%'>创建自定义文档库</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class='side-footer clearfix'>
      <span id='customShowLibsBox'>
      <a href='###' class='setting text-secondary small' data-target='#settingModal' data-toggle='modal'><i class='icon-cog'></i> 显示设置</a>
      </span>
                        <span id='orderBox'>
      <a href='###' id='orderLib' class='text-secondary small hidden' style='padding-left:5px;'><i class='icon-sort'></i> 文档库排序</a>
<a href='javascript:saveOrder()' id='saveOrder' class='text-secondary small hidden' style='padding-left:10px;'><i class='icon-checked'></i> 保存</a>
      </span>
                    </div>
                </div>
                <div class='modal fade' id='settingModal' aria-hidden="true">
                    <div class='modal-dialog mw-400px'>
                        <div class='modal-content'>
                            <div class='modal-header'>
                                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
                                <strong>显示设置</strong>
                            </div>
                            <div class='modal-body'>
                                <form action='/zentao/custom-ajaxSetDoc.html' target='hiddenwin' method='post'>
                                    <table class='table table-form'>
                                        <tr>
                                            <td><div class='checkbox-primary'><input type='checkbox' name='showLibs[]' value='zero'  checked ='checked' id='showLibszero' /> <label for='showLibszero'>显示空文档的库</label></div><div class='checkbox-primary'><input type='checkbox' name='showLibs[]' value='children'  checked ='checked' id='showLibschildren' /> <label for='showLibschildren'>显示子分类的文档</label></div><div class='checkbox-primary'><input type='checkbox' name='showLibs[]' value='unclosed'  id='showLibsunclosed' /> <label for='showLibsunclosed'>只显示未关闭的项目</label></div></td>
                                        </tr>
                                        <tr>
                                            <td> <button type='submit' id='submit' class='btn btn-wide btn-primary'  data-loading='稍候...'>保存</button></td>
                                        </tr>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                <script>
                    $(function()
                    {
                        if($.cookie('docSideType'))
                        {
                            var type = $.cookie('docSideType');
                            var $tabs = $('#mainRow .side-col .tabs');
                            if($tabs.find('.tab-content .tab-pane#' + type).length >0)
                            {
                                $tabs.find('.nav-tabs li').removeClass('active');
                                $tabs.find('.nav-tabs li a[href="#' + type + '"]').parent().addClass('active');
                                $tabs.find('.tab-content .tab-pane').removeClass('active');
                                $tabs.find('.tab-content .tab-pane#' + type).addClass('active');
                            }
                            $.cookie('docSideType', '');
                            $('#mainRow .side-col .side-footer #orderLib').toggleClass('hidden', (type == 'product' || type == 'project'));
                        }

                        $('#mainRow .side-col .tabs .nav-tabs li a').click(function()
                        {
                            var href     = $(this).attr('href');
                            var canOrder = !(href.indexOf('product') > 0 || href.indexOf('project') > 0);
                            if(!canOrder)
                            {
                                $(this).closest('.side-col').find('.side-footer #orderLib').addClass('hidden');
                                $(this).closest('.side-col').find('.side-footer #saveOrder').addClass('hidden');
                            }

                            var $orderLib  = $(this).closest('.side-col').find('.side-footer #orderLib');
                            var $saveOrder = $(this).closest('.side-col').find('.side-footer #saveOrder');

                            var execute = false;
                            $(this).on('shown.zui.tab', function()
                            {
                                if(!execute)
                                {
                                    var $tabPane   = $('#mainRow .side-col .tabs .tab-content .tab-pane.active');
                                    if($tabPane.find('.libs-group.sort').length > 0 && canOrder)
                                    {
                                        $orderLib.addClass('hidden');
                                        $saveOrder.removeClass('hidden');
                                        execute = true;
                                    }
                                    if($tabPane.find('.libs-group.sort').length == 0 && canOrder)
                                    {
                                        $orderLib.removeClass('hidden');
                                        $saveOrder.addClass('hidden');
                                        execute = true;
                                    }
                                }
                            });
                        });

                        $('#orderLib').click(function()
                        {
                            var $tabPane = $('#mainRow .side-col .tabs .tab-content .tab-pane.active');
                            var type     = $tabPane.attr('id');
                            $.get(createLink('doc', 'sort', "type=" + type), function(data)
                            {
                                $tabPane.html(data);
                                $tabPane.closest('.side-col').find('.side-footer #orderBox #orderLib').addClass('hidden');
                                $tabPane.closest('.side-col').find('.side-footer #orderBox #saveOrder').removeClass('hidden');
                                $tabPane.find('.libs-group.sort').sortable(
                                    {
                                        trigger:  '.lib',
                                        selector: '.lib',
                                    });
                            });
                        });
                    });

                    function saveOrder()
                    {
                        var $tabPane  = $('#mainRow .side-col .tabs .tab-content .tab-pane.active');
                        var type      = $tabPane.attr('id');
                        var orders    = {};
                        var orderNext = 1;

                        $tabPane.find('.libs-group.sort .lib').not('.files').not('.addbtn').each(function()
                        {
                            orders[$(this).data('id')] = orderNext ++;
                        });

                        $.post(createLink('doc', 'sort'), orders, function(data)
                        {
                            if(data.result == 'success')
                            {
                                $.cookie('docSideType', type);
                                return location.reload();
                            }
                            else
                            {
                                bootbox.alert(data.message);
                            }
                        }, 'json');
                    }
                </script>
            </div>
            <div class="main-col" data-min-width="400">
                <div class="cell" id="queryBox" data-module='doc'></div>
                <div class="row">
                    <div class="col-sm-7">
                        <div class="panel block-files block-sm" style="height: 290px;">
                            <div class="panel-heading">
                                <div class="panel-title">最近更新</div>
                                <nav class="panel-actions nav nav-default">
                                    <li><a href='/zentao/doc-browse-0-byediteddate.html' title='更多'><i class="icon icon-more icon-sm"></i></a>
                                    </li>
                                </nav>
                            </div>
                            <div class="panel-body has-table">
                                <table class="table table-borderless table-fixed-head table-hover">
                                    <thead>
                                    <tr>
                                        <th class="c-name">文档标题</th>
                                        <th class="c-num text-right">大小</th>
                                        <th class="c-user">由谁添加</th>
                                        <th class="c-datetime">更新时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5">
                        <div class="panel block-sm" style="height: 290px;">
                            <div class="panel-heading">
                                <div class="panel-title">所有文档 0</div>
                            </div>
                            <div class="panel-body table-row">
                                <div class="col-7 text-middle text-center">
                                    <div class="progress-pie inline-block space-lg" data-value="0" data-doughnut-size="84" data-real-value="0">
                                        <canvas width="100" height="100"></canvas>
                                        <div class="progress-info">
                                            <small>最近更新</small>
                                            <strong class="progress-value">0</strong>
                                        </div>
                                    </div>
                                    <div class="table-row text-center small text-muted">
                                        <div class="col-4">
                                            <span class="label label-dot label-primary"></span>
                                            <span>今日更新</span>
                                            <em class="strong">0</em>
                                        </div>
                                        <div class="col-4">
                                            <span class="label label-dot label-pale"></span>
                                            <span>往日更新</span>
                                            <em class="strong">0</em>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-5 text-middle text-center">
                                    <a class="table-row space-lg">
                                        <div class="table-col text-middle">
                                            <small class="muted">最近添加</small>
                                            <div class="strong">0</div>
                                        </div>
                                        <div class="table-col text-middle">
                                            <div class="progress-pie inline-block" data-value="0" data-doughnut-size="78" data-color="#00a9fc">
                                                <canvas width="50" height="50"></canvas>
                                                <div class="progress-info">
                                                    <strong><span class="progress-value">0</span><small>%</small></strong>
                                                </div>
                                            </div>
                                        </div>
                                    </a>
                                    <a class="table-row space-lg">
                                        <div class="table-col text-middle">
                                            <small class="muted">我的文档</small>
                                            <div class="strong">0</div>
                                        </div>
                                        <div class="table-col text-middle">
                                            <div class="progress-pie inline-block" data-value="0" data-doughnut-size="78" data-color="#00da88">
                                                <canvas width="50" height="50"></canvas>
                                                <div class="progress-info">
                                                    <strong><span class="progress-value">0</span><small>%</small></strong>
                                                </div>
                                            </div>
                                        </div>
                                    </a>
                                    <a class="table-row">
                                        <div class="table-col text-middle">
                                            <small class="muted">我的收藏</small>
                                            <div class="strong">0</div>
                                        </div>
                                        <div class="table-col text-middle">
                                            <div class="progress-pie inline-block" data-value="0" data-doughnut-size="78" data-color="#fdc137">
                                                <canvas width="50" height="50"></canvas>
                                                <div class="progress-info">
                                                    <strong><span class="progress-value">0</span><small>%</small></strong>
                                                </div>
                                            </div>
                                        </div>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-7">
                        <div class="panel block-files block-sm" style="height: 290px;">
                            <div class="panel-heading">
                                <div class="panel-title">未完成项目</div>
                                <nav class="panel-actions nav nav-default">
                                    <li><a href='/zentao/doc-allLibs-project.html' title='更多'><i class="icon icon-more icon-sm"></i></a>
                                    </li>
                                </nav>
                            </div>
                            <div class="panel-body has-table">
                                <table class="table table-borderless table-fixed-head table-hover">
                                    <thead>
                                    <tr>
                                        <th class="c-name">项目名称</th>
                                        <th class="c-date">开始日期</th>
                                        <th class="c-date">截止日期</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5">
                        <div class="panel block-files block-sm" style="height: 290px;">
                            <div class="panel-heading">
                                <div class="panel-title">我的文档</div>
                                <nav class="panel-actions nav nav-default">
                                    <li><a href='/zentao/doc-browse-0-openedbyme.html' title='更多'><i class="icon icon-more icon-sm"></i></a>
                                    </li>
                                </nav>
                            </div>
                            <div class="panel-body has-table">
                                <table class="table table-borderless table-fixed-head table-hover">
                                    <thead>
                                    <tr>
                                        <th class="c-name">文档标题</th>
                                        <th class="c-user">由谁添加</th>
                                        <th class="c-datetime">更新时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div><script>
    $.initSidebar();
</script>

    <iframe frameborder='0' name='hiddenwin' id='hiddenwin' scrolling='no' class='debugwin hidden'></iframe>

</main><footer id='footer'>
    <div class="container">
        <ul class='breadcrumb'><li><a href='/zentao/my/' >禅道</a>
        </li><li><a href='/zentao/doc/' >文档</a>
        </li><li class='active'>文档主页</li></ul>    <div id='poweredBy'>
        <small class='muted'><a href='https://api.zentao.net/goto.php?item=aiux' class='link-aiux' target='_blank'>Designed by <strong>艾体验</strong></a></small> &nbsp;
        <a href='https://www.zentao.net' target='_blank'><i class='icon-zentao'></i> 禅道12.5.3</a> &nbsp;
        <a href='https://api.zentao.net/goto.php?item=proversion&from=footer' target='_blank' id='proLink' class='text-important'>专业版 <i class='text-danger icon-pro-version'></i></a> &nbsp;           </div>
    </div>
</footer>
<div id="noticeBox"></div>
<script>
    /* Alert got messages. */
    needPing = false;
    $(function()
    {
        var windowBlur = false;
        if(window.Notification)
        {
            window.onblur  = function(){windowBlur = true;}
            window.onfocus = function(){windowBlur = false;}
        }
        setInterval(function()
        {
            $.get(createLink('message', 'ajaxGetMessage', "windowBlur=" + (windowBlur ? '1' : '0')), function(data)
            {
                if(!windowBlur)
                {
                    $('#noticeBox').append(data);
                    adjustNoticePosition();
                }
                else
                {
                    if(data)
                    {
                        if(typeof data == 'string') data = $.parseJSON(data);
                        if(typeof data.message == 'string') notifyMessage(data);
                    }
                }
            });
        }, 300000);
    })

</script>

<script>function loadModules(libID)
{
    link = createLink('doc', 'ajaxGetModules', 'libID=' + libID);
    $('#moduleBox').load(link, function(){$('#moduleBox').find('select').chosen()});
}

function toggleAcl(acl, type)
{
    if(acl == 'custom')
    {
        $('#whiteListBox').removeClass('hidden');
    }
    else
    {
        $('#whiteListBox').addClass('hidden');
    }
    if(type == 'lib')
    {
        var libType = $('input[name="type"]:checked').val();
        var notice  = typeof(noticeAcl[libType][acl]) != 'undefined' ? noticeAcl[libType][acl] : '';
        $('#noticeAcl').html(notice);
    }
    else
    {
        var notice  = typeof(noticeAcl[acl]) != 'undefined' ? noticeAcl[acl] : '';
        $('#noticeAcl').html(notice);
    }
}

function loadDocModule(libID)
{
    link = createLink('doc', 'ajaxGetChild', 'libID=' + libID);
    $.post(link, function(data)
    {
        $('#module').replaceWith(data);
        $('#module_chosen').remove();
        $('#module').chosen();
    });
}

function setBrowseType(type)
{
    $.cookie('browseType', type, {expires:config.cookieLife, path:config.webRoot});
    location.href = location.href;
}

$(document).ready(function()
{
    // hide #module chosen dropdown on #lib dropdown show
    $('#lib').on('chosen:showing_dropdown', function()
    {
        $('#module').trigger('chosen:close');
    });

    $('.libs-group.sort').sortable(
        {
            trigger:  '.lib',
            selector: '.lib',
            finish:   function()
            {
                var orders = {};
                var orderNext = 1;

                $('.libs-group .lib').not('.files').not('.addbtn').each(function()
                {
                    orders[$(this).data('id')] = orderNext ++;
                })

                $.post(createLink('doc', 'sort'), orders, function(data)
                {
                    if(data.result == 'success')
                    {
                        return location.reload();
                    }
                    else
                    {
                        alert(data.message);
                        return location.reload();
                    }
                }, 'json');
            }
        });

    'use strict';

    var NAME = 'zui.splitRow'; // model name

    // File input list
    // The SplitRow model class
    var SplitRow = function(element, options)
    {
        var that = this;
        that.name = NAME;
        var $element = that.$ = $(element);

        options = that.options = $.extend({}, SplitRow.DEFAULTS, this.$.data(), options);
        var id = options.id || $element.attr('id') || $.zui.uuid();
        var $cols = $element.children('.side-col,.main-col');
        var $firstCol = $cols.first();
        var $secondCol = $cols.eq(1);
        var $spliter = $firstCol.next('.col-spliter');
        if (!$spliter.length)
        {
            $spliter = $(options.spliter);
            if (!$spliter.parent().length)
            {
                $spliter.insertAfter($firstCol);
            }
        }
        var spliterWidth = $spliter.width();
        var minFirstColWidth = $firstCol.data('minWidth');
        var minSecondColWidth = $secondCol.data('minWidth');
        var setFirstColWidth = function(width)
        {
            var rowWidth = $element.width();
            var maxFirstWidth = rowWidth - minSecondColWidth - spliterWidth;
            width = Math.max(minFirstColWidth, Math.min(width, maxFirstWidth));
            $firstCol.width(width);
            $.zui.store.set('splitRowFirstSize:' + id, width);
        };

        var defaultWidth = $.zui.store.get('splitRowFirstSize:' + id);
        if(typeof(defaultWidth) == 'undefined')
        {
            defaultWidth = 0;
            $firstCol.find('.tabs ul.nav-tabs li').each(function(){defaultWidth += $(this).outerWidth()});
            defaultWidth += ($firstCol.find('.tabs ul.nav-tabs li').length - 1) * 10;
            defaultWidth += 30;
        }
        setFirstColWidth(defaultWidth);

        var documentEventName = '.' + id;

        var mouseDownX, isMouseDown, startFirstWidth;
        $spliter.on('mousedown', function(e)
        {
            startFirstWidth = $firstCol.width();
            mouseDownX = e.pageX;
            isMouseDown = true;
            $element.addClass('row-spliting');
            e.preventDefault();
            $(document).on('mousemove' + documentEventName, function(e)
            {
                if (isMouseDown)
                {
                    var deltaX = e.pageX - mouseDownX;
                    setFirstColWidth(startFirstWidth + deltaX);
                    e.preventDefault();
                } else {
                    $(document).off(documentEventName);
                    $element.removeClass('row-spliting');
                }
            }).on('mouseup' + documentEventName + ' mouseleave' + documentEventName, function(e)
            {
                isMouseDown = false;
                $(document).off(documentEventName);
                $element.removeClass('row-spliting');
            });
        });

        var fixColClass = function($col)
        {
            if (options.smallSize) $col.toggleClass('col-sm-size', $col.width() < options.smallSize);
            if (options.middleSize) $col.toggleClass('col-md-size', $col.width() < options.middleSize);
        };

        var resizeCols = function() {
            var cellHeight = $(window).height() - $('#footer').outerHeight() - $('#header').outerHeight() - 42;
            $cols.children('.panel').height(cellHeight).css('maxHeight', cellHeight).find('.panel-body').css('position', 'absolute');
            var sideHeight = cellHeight - $cols.find('.nav-tabs').height() - $cols.find('.side-footer').height() - 35;
            $cols.find('.tab-content').height(sideHeight).css('maxHeight', sideHeight).css('overflow-y', 'auto');
        };

        $(window).on('resize', resizeCols);
        $firstCol.on('resize', function(e) {fixColClass($firstCol);});
        $secondCol.on('resize', function(e) {fixColClass($secondCol);});
        fixColClass($firstCol);
        fixColClass($secondCol);
        resizeCols();
    };

    // default options
    SplitRow.DEFAULTS =
        {
            spliter: '<div class="col-spliter"></div>',
            smallSize: 700,
            middleSize: 850
        };

    // Extense jquery element
    $.fn.splitRow = function(option)
    {
        return this.each(function()
        {
            var $this = $(this);
            var data = $this.data(NAME);
            var options = typeof option == 'object' && option;
            if(!data) $this.data(NAME, (data = new SplitRow(this, options)));
        });
    };

    SplitRow.NAME = NAME;

    $.fn.splitRow.Constructor = SplitRow;

    // Auto call splitRow after document load complete
    $(function()
    {
        $('.split-row').splitRow();
    });

    var $pageSetting = $('#pageSetting');
    if($pageSetting.length)
    {
        $pageSetting.on('click', '.close-dropdown', function()
        {
            $pageSetting.parent().removeClass('open');
        }).on('click', function(e){e.stopPropagation()});
    }

    $('.ajaxCollect').mousedown(function (event) {
        var obj = $(this);
        var url = obj.data('url');
        $.get(url, function(response)
        {
            if(response.status == 'yes')
            {
                obj.children('i').removeClass().addClass('icon icon-star text-yellow');
                obj.parent().prev().children('.file-name').children('i').remove('.icon');
                obj.parent().prev().children('.file-name').prepend('<i class="icon icon-star text-yellow"></i> ');
            }
            else
            {
                obj.children('i').removeClass().addClass('icon icon-star-empty');
                obj.parent().prev().children('.file-name').children('i').remove(".icon");
            }
        }, 'json');
        return false;
    });
});

</script>
</body>
</html>
